import { ReactNode } from 'react'
import styles from './index.module.less'
import IconSvg from '@/components/IconSvg'

interface CardVarable {
  children: ReactNode
  text: string
}

export default ({ children, text }: CardVarable) => (
  // console.log('组件卡片🚀🚀🚀🚀')
  <div className={styles.card}>
    <div className={styles.title}>
      <div className={styles.round}>
        <IconSvg name='round' />
      </div>
      <div>{text}</div>
    </div>
    {children}
  </div>
)
